﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Production_monitor
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();

            string[] args = Environment.GetCommandLineArgs();

            if (args.Length > 0)
            {
                miAdministrator.Visible = args.Contains("/ADMIN");
            }
        }

        private void konecToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void tsbExit_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Konec programu ?", "Dotaz", MessageBoxButtons.YesNo) != DialogResult.Yes) return;
            
            Application.Exit();
        }
    }
}
